﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAT.Model;
using CrystalDecisions.CrystalReports.Engine;
using System.Windows.Forms;
namespace MAT.Controllers
{
    class ctrReportAssetMaintenance
    {
        private frmReportAssetMaintenance _frmReportAssetMaintenance = null;

        public frmReportAssetMaintenance FrmReportAssetMaintenance
        {
            get { return _frmReportAssetMaintenance; }
            set { _frmReportAssetMaintenance = value; }
        }
        MAT_Context context = MATContext.getContext();
        CommonClass ccl = new CommonClass();
        public void frmReportMaintenance_Load()
        {
            ReportDocument report = new ReportDocument();
            report.Load(Application.StartupPath + @"\..\..\Reports\crpReportAssetMaintenance.rpt");
            ccl.automationConnect(report);
            _frmReportAssetMaintenance.crystalReportViewer1.ReportSource = report;
            _frmReportAssetMaintenance.crystalReportViewer1.Refresh();

        }
    }
}
